/**
 * 
 */
package org.statewalker.validator;

import org.statewalker.fsm.providers.FsmTransitionsConfigurator;

/**
 * @author kotelnikov
 */
public class ValidatorGrammarConfig extends FsmTransitionsConfigurator {

    public ValidatorGrammarConfig(ValidatorGrammar grammar) {
        super(grammar);
    }

    public ValidatorGrammar getGrammar() {
        return getRegistry();
    }

    @Override
    public ValidatorGrammar getRegistry() {
        return (ValidatorGrammar) super.getRegistry();
    }

    public void setParentToken(String child, String parent) {
        ValidatorGrammar grammar = getGrammar();
        grammar.setParentToken(child, parent);
    }

}
